<?php

class Application_Model_JobFactory {

    public static function createJobExecute($job) {

        switch ($job->Type) {
            case Application_Model_Job::Type_Url:
                return new Application_Model_JobExecute_Url();
            default:
                return null;
        }
    }

    public static function getJobList() {
        return Application_Model_Job::getEnabledJob();
    }
    
    public static function getJobLoad($id)
    {
        return Application_Model_Job::load($id);
    }

}
